<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:ui="http://java.sun.com/jsf/facelets">
	<h:body>
		<h:form>
			<p:menu styleClass="menuList">  
		        <p:submenu styleClass="">  
		            <p:menuitem value="Usuários" rendered="#{user.isAdmin}" icon="ui-icon-person" url="/form/user.jsf"/>
		            <p:menuitem value="Departamento" icon="ui-icon-contact" rendered="#{user.isAdmin}" url="/form/department.jsf"/>
		            <p:menuitem value="Disciplina" icon="ui-icon-note" rendered="#{user.isAdmin || user.isBoss}" url="/form/discipline.jsf"/>
		            <p:menuitem value="Serviço" icon="ui-icon-cart" rendered="#{user.isOperator}" url="/form/service.jsf"/>  
		            <p:menuitem value="Parâmetros" icon="ui-icon-pencil" rendered="#{user.isAdmin}" url="/form/parameter.jsf"/>  
		            <p:menuitem value="Central de Tarefas" icon="ui-icon-bookmark" rendered="#{user.isOperator}" url="/form/centralTask.jsf"/>
		            <p:menuitem value="Nova Impressão" icon="ui-icon-print" rendered="#{user.isTeacher}" url="/form/newWork.jsf"/>
		        </p:submenu>  
		    </p:menu>
	    </h:form>
	</h:body>
</html>